<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property int $sid
 *@property int $eid
 *@property int $user_id
 *@property int $ebook_id
 *@property int $rating
 *@property string $review_text
 *@property string $review_time
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait UserReviewsValidation
{


    public function createRules()
    {
         return [
            'rules' => [
                'user_id'=>'integer',
                'ebook_id'=>'integer',
                'rating'=>'integer',
                'review_text'=>'between:0,255',
                'review_time'=>'between:0,32',
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'user_id'=>'integer',
                'ebook_id'=>'integer',
                'rating'=>'integer',
                'review_text'=>'between:0,255',
                'review_time'=>'between:0,32',
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
